<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta charset="utf-8" />
    <title>后台管理 - 系统设置</title>

    <meta name="keywords" content="{$Think.CONFIG.keywords}" />
    <meta name="description" content="{$Think.CONFIG.description}" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

    <include file="Public/head" />
</head>
<?php $SystemConfig='active';$ptitle='系统配置';$title='列表';?>
<body class="no-skin">
<include file="Public/header" />
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try{ace.settings.check('main-container' , 'fixed')}catch(e){}
    </script>

    <include file="Public/sidebar" />
    <div class="main-content">
        <div class="main-content-inner">
            <!-- #section:basics/content.breadcrumbs -->
            <include file="Public/breadcrumbs" />

            <!-- /section:basics/content.breadcrumbs -->
            <div class="page-content">
                <include file="Public/set" />

                <!-- /section:settings.box -->
                <div class="row">
                    <div class="col-xs-12">
                        <!-- PAGE CONTENT BEGINS -->
                        <form class="form-horizontal ajaxForm2 ajax-form" id="formz" name="form0" method="post" action="{:U('system_config')}"  enctype="multipart/form-data">
                            <volist name="configInfo" id="v">
                                <input type="hidden" name="old_{$v.config_name}" value="{$v.config_value}">
                                <div class="form-group">
                                    <label class="col-sm-1 control-label no-padding-right" for="title">{$v.config_info}<neq name="v.config_unit" value="">({$v.config_unit})</neq><span class="required">*</span></label>
                                    <div class="col-sm-6">
                                        <input type="text" name="{$v.config_name}" placeholder="{$v.config_info}必填"  class="col-xs-10 col-sm-6" value="{$v.config_value}" required/><if condition="($v.config_name eq 'install_price_rebate') OR ($v.config_name eq 'nearby_install_rebate') OR ($v.config_name eq 'take_order_rebate')"><span style="color:red;">（请填写小数,例如：0.1）</span></if>
                                        <span class="help-inline col-xs-12 col-sm-7">
                                          <span class="middle" id="title"></span>
                                       </span>
                                    </div>
                                </div>
                                <div class="space-4"></div>
                            </volist>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right"> 系统维护 <span class="required">*</span> </label>
                                <div class="col-sm-9">
                                    <select name="system_maintenance" class="rcol-xs-10 col-sm-1" id="disabled">
                                        <option value="0" <if condition="$maintenanceInfo['config_value'] eq 0">selected</if>>开启</option>
                                        <option value="1" <if condition="$maintenanceInfo['config_value'] eq 1">selected</if>>关闭</option>
                                    </select>
                                </div>
                            </div>
                            <div class="space-4"></div>
                            <div class="col-md-offset-2 col-md-9">
                                <input type='hidden' name='id' id='id' value="{$info['id']}">
                                <button class="btn btn-info" type="submit">
                                    <i class="icon-ok bigger-110"></i>
                                    提交
                                </button>

                                &nbsp; &nbsp; &nbsp;
                                <button class="btn btn-info" type="button" onclick='fan();'>
                                    <i class="icon-ok bigger-110"></i>
                                    返回
                                </button>
                            </div>
                        </form>
                        <!-- PAGE CONTENT ENDS -->
                    </div><!-- /.col -->
                </div><!-- /.row -->
            </div><!-- /.page-content -->
        </div>
    </div><!-- /.main-content -->
    <include file="Public/footer" />

</div><!-- /.main-container -->

<include file="Public/footerjs" />
<!-- inline scripts related to this page -->
<script src="__PUBLIC__/qwadmin/js/date-time/bootstrap-datepicker.js"></script>
<script src="__PUBLIC__/qwadmin/js/function.js"></script>
<script type="text/javascript">
    function fan(){
        var urls = "{:U('AdminUser/index')}";
        window.location.href=urls;
    }
</script>
</body>
</html>
